<!-- 答题页设置面板 -->
<template>
    <el-tabs modelValue="style" stretch>
        <!-- <el-tab-pane :label="`${element.name}设置`" name="page">
            <el-scrollbar>
                
            </el-scrollbar>
        </el-tab-pane> -->

        <el-tab-pane label="页面样式" name="style">
            <el-scrollbar>
                <el-collapse modelValue="1">
                    <el-collapse-item title="基本设置" name="1">
                        <layout-pane label="背景">
                            <si-image-picker
                                v-model="element.customFeature.style['background-image']"
                                type="image"
                            />
                        </layout-pane>
                    </el-collapse-item>
                </el-collapse>
            </el-scrollbar>
        </el-tab-pane>
    </el-tabs>
</template>

<script>
import { defineComponent, toRefs } from 'vue'
import LayoutPane from '@/components/setting-pane/layout-pane'
import {
    SiColorPicker,
    SiImagePicker
} from '@/components/setting-pane/setting-item'
export default defineComponent({
    name: 'QuestionResultSetting',
    components: {
        LayoutPane,
        SiColorPicker,
        SiImagePicker
    },
    props: {
        element: {
            type: Object,
            default: () => ({})
        }
    },
    setup(props) {
        const { element } = toRefs(props)

        return {
            element
        }
    }
})
</script>